home *** CD-ROM | disk | FTP | other *** search
- // ADP Auto Fix (Functions) flow
- // Copyright (c) GTek Technologies Ltd.
-
- var g_oAcs = new ADPPlugin("Name=AdpDiag,DllName=Acs");
-
- function stopAcs() {
- g_oAcs.getObj().StopACS();
- }
-
- function deleteAcs() {
- coachPath = g_oAdp.ChangeString(g_sCoachOSAppData).toLowerCase();
- acsPath = coachPath.substring(0,coachPath.indexOf("aolcoach")) + "acs\\1.0";
- folderCount = g_oReg.getObj().CountFolderElements(acsPath + "\\*.*");
- folderFiles = new Array(folderCount);
-
- for (i=0;i<folderCount;i++) {
- folderFiles[i] = acsPath + "\\" + g_oReg.getObj().FolderElementAt(acsPath + "\\*.*",i);
- }
-
- for (f=0;f<folderFiles.length;f++) {
- if (!g_oReg.getObj().DeleteFile(folderFiles[f])) {
- try {
- g_oReg.getObj().DeleteFolder(folderFiles[f], true);
- } catch (e) {
- g_sJsResult = "SelfExit";
- }
- }
- }
- }
-
- function unloadAcs(){
- g_oAcs.getObj().UnloadAcs();
- }